/**
 * 
 */
package com.baijia.tianxiao.push.web.controller;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baijia.tianxiao.connect.route.api.model.TxMessage;
import com.baijia.tianxiao.push.service.BizMessageService;
import com.baijia.tianxiao.push.service.impl.BizMessageServiceImpl;

/**
 * @author leiruiqi
 *
 */
@RestController
@RequestMapping("/txCr")
public class BizMessageController {

	private static Logger logger = LoggerFactory.getLogger(BizMessageServiceImpl.class); 
	
	@Resource
	private BizMessageService bizMessageService;
	
	@RequestMapping("/bizMessage")
	public TxMessage bizMessage(@RequestBody TxMessage receiveTxmessage){
		
		return bizMessageService.bizMessage(receiveTxmessage);
	}
	
	@RequestMapping("/bizMessageSyn")
	public TxMessage bizMessageSyn(@RequestBody TxMessage receiveTxmessage){		
		return bizMessageService.bizMessageSyn(receiveTxmessage);
	}
}
